package com.yami.shop.vo.group.gag;

import com.yami.shop.vo.group.UserIdVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class GroupGagVo implements Serializable {
    @NotEmpty(message = "群组id不能为空")
    @Schema(description = "群组id",required = true)
    private String groupId;

    @Valid
    @NotNull(message = "需要禁言的群成员列表不能为空")
    @Schema(description = "需要禁言的群成员列表",required = true)
    private List<UserIdVo> users;


    @Schema(description = "禁言时长")
    private Integer minute=0;
}
